﻿using StarryEdge.Core.Device;
using StarryEdge.Core.Models;
using StarryEdge.Core.Parameter;
using StarryEdge.Core;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using StarryEdge.Core.Attributes;

namespace StarryEdge.Module.Handle.Handle
{
    [TaskClass("前称重")]
    public class BeforeWeighing<T> : HandleBase, IHandle<T>
    {
        public BeforeWeighing(IStarryEdgeLog starryEdgeLog, IDialogHost dialogHost, ITemporaryParameter temporaryParameter, ISystemConfigParameter systemConfigParameter, IDeviceFactory deviceFactory) : base(starryEdgeLog, dialogHost, temporaryParameter, systemConfigParameter, deviceFactory)
        {
        }

        public Task<bool> Handle(HandleContext<T> context)
        {
            IPLC<T> plc = _deviceFactory.GetDevice<IPLC<T>>(x => x.ServiceName == context.ServiceName && x.TaskName == "扫描线程");

            return Task.FromResult(false);
        }
    }
}
